﻿using System;
using System.Collections.Generic;
using Core.Model.Questions;

namespace Core.Model
{
    //questionary model class
    public class QuestionList//:Model
    {
        public virtual Guid Id { get; protected set; }
        public virtual string Title { get; set; }
        public virtual string Description { get; set; }

        public virtual bool IsAnonymous { get; set; }
        public virtual bool IsArhived { get; set; }
        public virtual DateTime StartQuestionary { get; set; }

        public virtual IList<Question> Questions { get; set; } 
        public virtual IList<Tag> Tags { get; set; }
        
        public virtual User User { get; set; }

        public QuestionList(string title, string description, 
            bool isAnonymous)
        {
            Title = title;
            Description = description;
            IsAnonymous = isAnonymous;
            Tags = new List<Tag>();
            Questions = new List<Question>();
            IsArhived = false;
            StartQuestionary = DateTime.Now;
            Tags = new List<Tag>();
            Questions = new List<Question>();
        }

        public QuestionList()
        {
            Tags = new List<Tag>();
            Questions = new List<Question>();
            StartQuestionary = DateTime.Now;
        }

    }
}
